package com.geostar.constructionland.analyse.entity;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.geostar.constructionland.analyse.valid.AreaCalValid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author yelll
 * @since 2020-5-26 10:27
 * 地块信息
 **/
@Data
@ApiModel
public class Block {
    @ApiModelProperty(value = "地块ID",required = true)
    @JsonAlias({"DK_ID","dk_id","dkid"})
    private String dk_id;
    @ApiModelProperty(value = "地理信息JSON串",required = true)
    @JsonAlias({"GeoJson","geoJson"})
    private String geoJson;
    @ApiModelProperty(value = "地块面积")
    @NotNull(message = "地块面积不能为空",groups = {AreaCalValid.class})
    private BigDecimal dkmj;
    @ApiModelProperty(value = "原始地块面积")
    @NotNull(message = "原始地块面积不能为空",groups = {AreaCalValid.class})
    private BigDecimal dkmj_ys;
    @ApiModelProperty(value = "地块ID",required = true)
    @JsonAlias({"WKID","wkid"})
    private String wkid;
}
